/*
*ModelparameterSetting.js
*模型参数设置
**/

import React,{Component}  from 'react'
import {connect} from 'dva';
import { Table,message,Row,Button } from 'antd';
import { OptimizationRules,TargetIncome } from './OptimizationSelect';
import { optimizationRules } from '../../../../utils/dataConfig/';
import { AssetWeightTable,AssetsIncomeTable,AssetsRatioTable  } from './ConfigSimulationTable';
const ModelParameterSetting =({dispatch,configSconst,configSimulation}) =>{
	const { optimizeRules } = configSimulation;
	console.log('ModelParameterSetting>>>',configSimulation)
	return(
		<div>
			<span>各类资产的预期风险收益特征：</span>
			<AssetsIncomeTable />
			<span>各类资产的相关系数：</span>
			<AssetsRatioTable/>
			<span>资产权重约束条件：</span>
			<AssetWeightTable/>
			<Row>
				{/*优化规则*/}
				<OptimizationRules
					value=''
					tag='configSimulation'
					dispatch={dispatch}
					data={optimizationRules}
				/>
			{/*预期目标收益*/}
				<TargetIncome 
					OP={optimizeRules}
					tag='configSimulation'
					dispatch={dispatch}
				/>
			</Row>
		</div>
	)
}

ModelParameterSetting.propTypes = {}

export default connect(({configSconst,configSimulation})=>({configSconst,configSimulation}))(ModelParameterSetting)